package com.im.db.event;

import com.core.sdk.core.BaseEvent;
import com.core.sdk.core.Location;
import com.im.db.event.XmppMessageRequestEvent.Operate;

public class XmppMessageResponseEvent extends BaseEvent {

	private static final long serialVersionUID = 1L;

	Operate op;
	Object result;
	long pageNo;
	public XmppMessageResponseEvent(Location to, Operate op,Object result) {
		super(to);
		this.op = op;
		this.result = result;
	}

	public Operate getOp() {
		return op;
	}

	public <T> T getResult() {
		return (T)result;
	}

	public long getPageNo() {
		return pageNo;
	}

	public void setPageNo(long pageNo) {
		this.pageNo = pageNo;
	}
}
